
	import java.awt.*;
	import java.awt.event.*;
	import javax.swing.*;

	public class ColorApp extends JFrame
	{
		private JLabel _instructions;
		private ColorPanel _cpanel;
		private SliderPanel _sliders;
		private ValueHolder _rHolder, _gHolder, _bHolder;

		public ColorApp(String title)
		{
			super(title);
			this.setSize(800,600);
			this.setDefaultCloseOperation(EXIT_ON_CLOSE);
			_instructions = new JLabel("Slide the sliders to make a color.",JLabel.CENTER);
			_instructions.setFont(new Font("Times New Roman",Font.BOLD,16));
			this.add(_instructions,BorderLayout.NORTH);
			_rHolder = new ValueHolder();
			_gHolder = new ValueHolder();
			_bHolder = new ValueHolder();
			_cpanel = new ColorPanel(_rHolder, _gHolder, _bHolder);
			this.add(_cpanel,BorderLayout.CENTER);
			_sliders = new SliderPanel(_rHolder, _gHolder, _bHolder, _cpanel);
			this.add(_sliders,BorderLayout.SOUTH);
			this.setVisible(true);
		}
		public static void main(String [] args)
		{
			ColorApp myApp = new ColorApp("Tool to create colors");
		}

}
